﻿/*
*  	Graffiti 1.1.1
*  	______________________________________________________________________
*  	www.nocircleno.com/graffiti/
*/

/*
* 	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* 	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* 	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* 	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* 	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* 	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* 	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* 	OTHER DEALINGS IN THE SOFTWARE.
*/

package com.nocircleno.graffiti.tools {
	
	/**
	* Class provides constant values to use to define the types of Lines.
	*/
	public class LineType {
		
		/**
		* Solid Line
		*/
		public static const SOLID:String = "solid";
		/**
		* Dashed Line
		*/
		public static const DASHED:String = "dashed";
		/**
		* Dotted Line
		*/
		public static const DOTTED:String = "dotted";
		
		/**
		* The <code>validType</code> method is used to validate a line type.
		* 
		* @param type String to check to see if it is a valid Line Type.
		* 
		*/
		static public function validType(type:String):Boolean {
		
			var valid:Boolean = false;
			
			if(type == LineType.SOLID || type == LineType.DASHED || type == LineType.DOTTED) {
				valid = true;
			}
			
			return valid;
			
		}
		
	}
	
}